package com.privatetime.common;

import java.util.List;

public class Pagination<E> implements IPagination<E> {

	private int currentIndex;

	private int totalNum;

	private int totalPages;

	private int pageSize;

	private List<E> entityList;

	public int getCurrentIndex() {
		return currentIndex;
	}

	public void setCurrentIndex(int currentIndex) {
		this.currentIndex = currentIndex;
	}

	public int getTotalNum() {
		return totalNum;
	}

	public void setTotalNum(int totalNum) {
		this.totalNum = totalNum;
	}

	public int getTotalPages() {
		return totalPages;
	}

	public void setTotalPages(int totalPages) {
		this.totalPages = totalPages;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public List<E> getEntityList() {
		return entityList;
	}

	public void setEntityList(List<E> entityList) {
		this.entityList = entityList;
	}

	// public Pagination() {
	// super();
	// }
	//
	// public Pagination(int currentIndex, int pageSize) {
	// super(currentIndex, pageSize);
	// }
	//
	// public static void main(String[] args) {
	// Pagination page = new Pagination();
	//
	// page.next();
	// System.out.println("Next:" + page);
	// page.previous();
	// System.out.println("Previous:" + page);
	// page.last();
	// System.out.println("Last:" + page);
	// page.first();
	// System.out.println("First:" + page);
	// }
}
